package cn.b.sky.form.model;

import cn.b.sky.common.model.ImeCommon;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * <strong>Title : BusinessType.java<br></strong>
 * <strong>Package : cn.b.sky.flowable.model<br></strong>
 * <strong>Description : </strong>业务类型对象<br> 
 * <strong>Create on : 2016-09-27 下午05:43:09<br></strong>
 * <p>
 * @author JunLin.Yang<br>
 * @version <strong>v1.0.0</strong><br>
 */
public class BusinessType extends ImeCommon {

  /**
   * 业务编号规则
   */
  private String numberRuleCode;

  /**
   * 业务类型描述
   */
  private String businessTypeText;

  /**
   * 业务类型
   */
  private String businessType;

  /**
   * 序列编号
   */
  private String sequenceCode;

  /**
   * 表结构已生成标志
   */
  private Integer tableCreateFlag;

  /**
   * 数据库表名
   */
  private String dbTable;

  /**
   * 业务字段数据集合
   */
  private List<BusinessField> businessFieldList;
  
  private List<QueryScreen> querys=new ArrayList<QueryScreen>();//自定义查询列表

  public void setNumberRuleCode(String numberRuleCode) {
    this.numberRuleCode = numberRuleCode;
  }

  public String getNumberRuleCode() {
    return this.numberRuleCode;
  }

  public void setBusinessTypeText(String businessTypeText) {
    this.businessTypeText = businessTypeText;
  }

  public String getBusinessTypeText() {
    return this.businessTypeText;
  }

  public void setBusinessType(String businessType) {
    this.businessType = businessType;
  }

  public String getBusinessType() {
    return this.businessType;
  }

  public void setSequenceCode(String sequenceCode) {
    this.sequenceCode = sequenceCode;
  }

  public String getSequenceCode() {
    return this.sequenceCode;
  }

  public void setTableCreateFlag(Integer tableCreateFlag) {
    this.tableCreateFlag = tableCreateFlag;
  }

  public Integer getTableCreateFlag() {
    return this.tableCreateFlag;
  }

  public void setDbTable(String dbTable) {
    this.dbTable = dbTable;
  }

  public String getDbTable() {
    return this.dbTable;
  }

  public List<BusinessField> getBusinessFieldList() {
    return businessFieldList;
  }

  public void setBusinessFieldList(List<BusinessField> businessFieldList) {
    this.businessFieldList = businessFieldList;
  }
  
  
  
  public List<QueryScreen> getQuerys() {
    return querys;
  }

  public void setQuerys(List<QueryScreen> querys) {
    this.querys = querys;
  }

  public void preProcessingToStore(){
    this.businessType = this.businessType.toUpperCase();
    this.dbTable = this.dbTable.toUpperCase();
  }
}